package com.servertrack

import grails.test.mixin.TestFor
import spock.lang.Specification

/**
 * See the API for {@link grails.test.mixin.services.ServiceUnitTestMixin} for usage instructions
 */
@TestFor(TimesService)
//@Mock([Times])
class TimesServiceSpec extends Specification {

  /* void timesgetlist(){

	   def times1=new Times(title:"1.05-15.05",price:"1254",dateCreated: new Date("1987/2/10"))
	   def times2=new Times(title:"4.06-10.06",price:"542", dateCreated: new Date("2015/9/16"))
	   
	   def model=new TimesService().getlist()
	   
	   assert model.size()==2
	   assert model[0].text=="1.05-15.05"
	   assert model[0].id=="1.05-15.05"
	   assert model[1].text=="4.06-10.06"
	   assert model[0].id=="4.06-10.06"
	   }


    def cleanup() {
    }

    void "test something"() {
    }*/
}
